package com.wei.client;

import com.wei.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author wjx
 * @ClassName VodClientFeign
 * @description: TODO
 * @date 2022-12-02 04:52
 * @version: 1.0
 */
@FeignClient("service-vod")
@Component
public interface VodClientFeign {

    @DeleteMapping("/eduvod/video/removeVideo/{videoId}")
    public R removeVideo(@PathVariable("videoId") String videoId);

    @DeleteMapping("/eduvod/video/deleteBatch")
    public R deleteBatch(@RequestParam("vidList") List<String> vidList);
}
